<?php

Yii::import('common.models.db._base.BaseOfficeModel');

class OfficeModel extends BaseOfficeModel
{
	public static function model($className=__CLASS__) {
		return parent::model($className);
	}
	public function attributeLabels() {
		return array(
				'id' => Yii::t('DeliveryModule.main', 'ID'),
				'name' => Yii::t('DeliveryModule.main', 'Name Office'),
				'code' => Yii::t('DeliveryModule.main', 'Code Office'),
				'description' => Yii::t('DeliveryModule.main', 'Description'),
				'published' => Yii::t('DeliveryModule.main', 'Published'),
		);
	}
	public function relations() {
		return array(
			'user'=>array(self::HAS_MANY, 'User', 'id')
		);
	}
}